Buena noche compañeros,

Al momento de generar planilla me muestra el siguiente error:

System.Data.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details. ---> System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception: The wait operation timed out --- End of inner exception stack trace --- at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) --- End of inner exception stack trace --- at System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior) at System.Data.Objects.Internal.ObjectQueryExecutionPlan.ExecuteTResultType at System.Data.Objects.ObjectQuery1.GetResults(Nullable1 forMergeOption) at System.Data.Objects.ObjectQuery1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at Aseinfo.VH4.Salarios.Services.GeneracionPlanilla.GeneradorPlanillaService.GenerarPlanilla(PeriodoPlanillaGenerado informacionGeneracion) at Aseinfo.VH4.Salarios.Controllers.PeriodoPlanillaController.GenerarPlanilla(List1 codigosPeriodoPlanilla) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)

El error me muestra al momento de darle sobre el boton GENERAR PLANILLA.

Ya revise lo que es las colas y sus permisos, los servicios, reinicie el IIS, ejecute los procedimientos almacenados de la base de datos y no he logrado solucionarlo.

Agradeceré su apoyo.

asked 25 Oct '17, 20:42

jdelcid's gravatar image

jdelcid
(suspended)
accept rate: 16%


Empieza revisando la tabla sal.bcp para determinar exactamente en que parte del proceso se traba. El problema está ya sea en los SP de inicializacion o finalizacion o en la ejecucion de algun cursor

Si los SP se logran generar bien entonces puede haber un problema de parameter sniffing. Lee este enlace para saber mas al respecto

Y la recomendación de siempre, no es saludable tener una versión con 3 años de desface

link

answered 26 Oct '17, 07:36

sbarahona's gravatar image

sbarahona ♦♦
(suspended)
accept rate: 32%

Gracias por tus comentarios. Fíjate que en la bcp no hay registros de la fecha de generación que fue ayer y por lo que logro detectar, la generación no logra ni llegar al procedimiento de inicialización.

(26 Oct '17, 08:20) jdelcid jdelcid's gravatar image

Te sugiero reducir la cantidad de agrupadores en los casos que sea posible ya que si se cuenta con un catálogo de ingresos y deducciones muy grande, probablemente esa consulta sea el origen del timeout.
Asimismo realizar la debida asignación de agrupadores y cursores según las planillas donde son utilizados para que no se invoquen de manera innecesaria. También es necesario revisar el tiempo de ejecución del cursor principal con todos su parámetros, incluyendo el $$sessionid$$.

(26 Oct '17, 10:45) Julio Flores Julio%20Flores's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Evolution en BitBucket

En este sitio puede acceder al código fuente, centro de descargas y reportar bugs, propuestas y mejoras para Evolution.

Evolution en JIRA

En este sitio puedes sugerir nueva funcionalidad para Evolution, o puedes votar por la funcionalidad ya propuesta por otros usuarios.

Tags:

×47
×16

Asked: 25 Oct '17, 20:42

Seen: 766 times

Last updated: 26 Oct '17, 10:47

[Acerca de] [Preguntas Frecuentes] [Privacidad] [Soporte] [Contacto]
Copyright 2013-2018. Asesores en Informática